package com.victualler.product.depot.dto;

import com.victualler.core.common.annotation.ListPageQuery;
import com.victualler.core.common.annotation.SimpleQueryFrom;
import com.victualler.core.common.annotation.SimpleQueryWhere;
import com.victualler.core.common.enums.ColumnFormatEnum;
import com.victualler.core.common.enums.LinkType;

import java.io.Serializable;

/**
 * @author Guoshichang
 * @since 19:06 on 2018/10/2.
 */
@SimpleQueryFrom(value = "depot DepotDao")
public class DepotRequestDto implements Serializable {

    //仓库编号
    @SimpleQueryWhere(specialName = "DepotDao.name",linkType = LinkType.LIKE)
    @ListPageQuery(title = "仓库编号")
    private String depotNo;

    //仓库名称
    @SimpleQueryWhere(specialName = "DepotDao.name",linkType = LinkType.LIKE)
    @ListPageQuery(title = "仓库名称")
    private String name;

    @SimpleQueryWhere(specialName = "DepotDao.state")
    @ListPageQuery(title = "状态",type = ColumnFormatEnum.DICT,dictCodeType = "EntityState")
    private String state;


    public String getDepotNo() {
        return depotNo;
    }

    public void setDepotNo(String depotNo) {
        this.depotNo = depotNo;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }
}
